import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Main from '../Main.vue'
import CS from '../view/CS.vue'
import Layout from '../view/Layout.vue'
import ImportTopic from '../view/ImportTopic.vue'

const routes: Array<RouteRecordRaw> = [
	{
		path: '/',
		component: Main,
		children:[
			{
				path:'',
				component:Layout,
				children:[
					{
						name:"Home",
						path:'',
						component:CS
					},{
						name:"ImportTopic",
						path:'ImportTopic',
						component:ImportTopic
					}
					
				]
			},
		]
	},

]

const router = createRouter({
	history: createWebHistory(""),
	routes
})

export default router


